package com.ruoyi.project.person.info.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.person.dept.domain.PersonDept;

import javax.swing.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @program:
 * @auther 草莓酸奶~
 * @date 2020-09-16-21:30
 * @description:
 */
@JsonIgnoreProperties(value = { "handler"})
public class PersonInfo extends BaseEntity implements Serializable{

private Integer infoId;
private String  infoName;
private String  infoSex;
private String  infoPosition;
private String  infoPhone;
private Integer  deptId;
private String  infoStatus;

private PersonDept personDept;

    public PersonDept getPersonDept() {
        return personDept;
    }

    public void setPersonDept(PersonDept personDept) {
        this.personDept = personDept;
    }

    @Override
    public Date getCreateTime() {
        return super.getCreateTime();
    }

    @Override
    public void setCreateTime(Date createTime) {
        super.setCreateTime(createTime);
    }

    public PersonInfo(Integer infoId, String infoName, String infoSex, String infoPosition, String infoPhone, Integer deptId, String infoStatus) {
        this.infoId = infoId;
        this.infoName = infoName;
        this.infoSex = infoSex;
        this.infoPosition = infoPosition;
        this.infoPhone = infoPhone;
        this.deptId = deptId;
        this.infoStatus = infoStatus;
    }

    public PersonInfo() {


    }

    public Integer getInfoId() {
        return infoId;
    }

    public void setInfoId(Integer infoId) {
        this.infoId = infoId;
    }

    public String getInfoName() {
        return infoName;
    }

    public void setInfoName(String infoName) {
        this.infoName = infoName;
    }

    public String getInfoSex() {
        return infoSex;
    }

    public void setInfoSex(String infoSex) {
        this.infoSex = infoSex;
    }

    public String getInfoPosition() {
        return infoPosition;
    }

    public void setInfoPosition(String infoPosition) {
        this.infoPosition = infoPosition;
    }

    public String getInfoPhone() {
        return infoPhone;
    }

    public void setInfoPhone(String infoPhone) {
        this.infoPhone = infoPhone;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getInfoStatus() {
        return infoStatus;
    }

    public void setInfoStatus(String infoStatus) {
        this.infoStatus = infoStatus;
    }

    @Override
    public String toString() {
        return "PersonInfo{" +
                "infoId=" + infoId +
                ", infoName='" + infoName + '\'' +
                ", infoSex='" + infoSex + '\'' +
                ", infoPosition='" + infoPosition + '\'' +
                ", infoPhone='" + infoPhone + '\'' +
                ", deptId=" + deptId +
                ", infoStatus='" + infoStatus + '\'' +
                '}';
    }
}
